﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace SurfacePlatform
{
    class Player : Touchable
    {
        private String name;
        private int health;
        private float attraction;

        private float velocity;
        private float maxVelocity;
        private float acceleration;
        private bool onGround;
        private bool active;
        private bool dying = false;

        public String Name
        {
            get { return name; }
            set { name = value; }
        }
        public int Health
        {
            get { return health; }
            set { health = value; }
        }
        public float Attraction
        {
            get { return attraction; }
            set { attraction = value; }
        }
        public float Velocity
        {
            get { return velocity; }
            set { velocity = value; }
        }
        public float MaxVelocity
        {
            get { return maxVelocity; }
            set { maxVelocity = value; }
        }
        public float Acceleration
        {
            get { return acceleration; }
            set { acceleration = value; }
        }
        public bool OnGround
        {
            get { return onGround; }
            set { onGround = value; }
        }
        public bool Active
        {
            get { return active; }
            set { active = value; }
        }
        public bool Dying
        {
            get { return dying; }
            set { dying = value; }
        }


        public Player(String name, int health, Vector2 position, Vector2 gravity)
        {
            this.name = name;
            this.health = health;
            Position = position;
            Gravity = gravity;
            maxVelocity = 5;
            acceleration = 0.3f;
            onGround = false;
            attraction = 0;
            active = true;
            FingerLock = true;
        }
    }
}
